BS = new Object();

BS.load = function(filename)
{
    var script = document.createElement('script');
    script.id = 'id' + filename;
    script.src = filename;
    document.getElementsByTagName('head')[0].appendChild(script);
}

if(debug != undefined) {
    BS.path =  debug.path;
} else {
    BS.path = "http://localhost/ron/";
}

if(BS && BS.load) {
    BS.load(BS.path + "bscore.js");
    BS.load(BS.path + "bswindow.js");
    BS.load(BS.path + "bsinputhandler.js");
    BS.load(BS.path + "bsinspector.js");
    BS.load(BS.path + "bsshell.js");
    BS.load(BS.path + "startshell.js");
}

